-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor to allow custom temporal dimension into time slider #1799
refactor to allow custom temporal dimension into time slider #1799
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 4 files at r1, all commit messages.
Reviewable status: 1 of 4 files reviewed, 4 unresolved discussions (waiting on @Alex-NRCan, @amir-azma, @cphelefu, @DamonU2, @kaminderpal, @mayurmarakana89, and @ychoquet)
packages/geoview-core/public/configs/package-time-slider2-config-time-slider.json
line 15 at r1 (raw file):
"locked": true, "reversed": true, "defaultValue": "",
Like you said at the scrum... we may not need this and use the one from the dimension
packages/geoview-core/public/configs/package-time-slider2-config-time-slider.json
line 18 at r1 (raw file):
"temporalDimension": { "field": "datetime", "default": "1696-01-01T05:00:00Z",
Use array for default as it is dual handle [1950-01-01T05:00:00Z, 1970-01-01T05:00:00Z]
Set date from 1900-01-01T05:00:00Z to 2000-01-01T05:00:00Z and just put these 2 values
packages/geoview-core/public/configs/package-time-slider2-config-time-slider.json
line 63 at r1 (raw file):
"2016-01-01T04:47:32Z" ], "nearestValues": "discrete",
Should maybe be absolute
packages/geoview-core/src/core/stores/store-interface-and-intial-values/time-slider-state.ts
line 179 at r1 (raw file):
}, // #endregion ACTIONS setTemporalDimension(layerPath: string, temporalDimension: TemporalDimensionProps | null): void {
The temporal dimension is set on the layer itself
https://canadian-geospatial-platform.github.io/geoview/public/package-time-slider.html
cgpv.api.maps['mapWM1'].layer.registeredLayers['historical-flood/0'].geoviewLayerInstance.layerTemporalDimension['historical-flood/0']
21428f5
to
acb81a5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 0 of 6 files reviewed, 4 unresolved discussions (waiting on @Alex-NRCan, @amir-azma, @cphelefu, @DamonU2, @jolevesq, @kaminderpal, and @ychoquet)
packages/geoview-core/public/configs/package-time-slider2-config-time-slider.json
line 15 at r1 (raw file):
Previously, jolevesq (Johann Levesque) wrote…
Like you said at the scrum... we may not need this and use the one from the dimension
Done.
packages/geoview-core/public/configs/package-time-slider2-config-time-slider.json
line 18 at r1 (raw file):
Previously, jolevesq (Johann Levesque) wrote…
Use array for default as it is dual handle [1950-01-01T05:00:00Z, 1970-01-01T05:00:00Z]
Set date from 1900-01-01T05:00:00Z to 2000-01-01T05:00:00Z and just put these 2 values
Done.
packages/geoview-core/public/configs/package-time-slider2-config-time-slider.json
line 63 at r1 (raw file):
Previously, jolevesq (Johann Levesque) wrote…
Should maybe be absolute
Done.
packages/geoview-core/src/core/stores/store-interface-and-intial-values/time-slider-state.ts
line 179 at r1 (raw file):
Previously, jolevesq (Johann Levesque) wrote…
The temporal dimension is set on the layer itself
https://canadian-geospatial-platform.github.io/geoview/public/package-time-slider.html
cgpv.api.maps['mapWM1'].layer.registeredLayers['historical-flood/0'].geoviewLayerInstance.layerTemporalDimension['historical-flood/0']
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 4 files at r2, 2 of 4 files at r3, all commit messages.
Reviewable status: 3 of 6 files reviewed, 2 unresolved discussions (waiting on @Alex-NRCan, @amir-azma, @cphelefu, @DamonU2, @kaminderpal, @mayurmarakana89, and @ychoquet)
packages/geoview-core/public/configs/package-time-slider2-config-time-slider.json
line 21 at r3 (raw file):
"range": { "type": "absolute", "range": [
Just put [1900-01-01T05:00:00Z to 2000-01-01T05:00:00Z] for range
e03e41b
to
2265407
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 2 of 7 files reviewed, 2 unresolved discussions (waiting on @Alex-NRCan, @amir-azma, @cphelefu, @DamonU2, @jolevesq, @kaminderpal, and @ychoquet)
packages/geoview-core/public/configs/package-time-slider2-config-time-slider.json
line 21 at r3 (raw file):
Previously, jolevesq (Johann Levesque) wrote…
Just put [1900-01-01T05:00:00Z to 2000-01-01T05:00:00Z] for range
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 4 files at r2, 2 of 4 files at r4, all commit messages.
Reviewable status: 5 of 7 files reviewed, 2 unresolved discussions (waiting on @Alex-NRCan, @amir-azma, @cphelefu, @DamonU2, @kaminderpal, @mayurmarakana89, and @ychoquet)
packages/geoview-core/src/core/stores/store-interface-and-intial-values/time-slider-state.ts
line 11 at r4 (raw file):
}; // #region INTERFACES
Please, the start of region is few line above
packages/geoview-core/src/geo/layer/geoview-layers/abstract-geoview-layers.ts
line 1503 at r4 (raw file):
/** *************************************************************************************************************************** * Change the layer phase property and emit an event to update existing layer sets.
This line is not the good definition for the function
4f98bbd
to
e2125bf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 3 of 7 files reviewed, 2 unresolved discussions (waiting on @Alex-NRCan, @amir-azma, @cphelefu, @DamonU2, @jolevesq, @kaminderpal, and @ychoquet)
packages/geoview-core/src/core/stores/store-interface-and-intial-values/time-slider-state.ts
line 11 at r4 (raw file):
Previously, jolevesq (Johann Levesque) wrote…
Please, the start of region is few line above
Done.
packages/geoview-core/src/geo/layer/geoview-layers/abstract-geoview-layers.ts
line 1503 at r4 (raw file):
Previously, jolevesq (Johann Levesque) wrote…
This line is not the good definition for the function
Done.
Done! |
1334d23
to
60fe467
Compare
e236932
to
9f727a4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 5 of 5 files at r5, all commit messages.
Reviewable status: 5 of 7 files reviewed, 2 unresolved discussions (waiting on @Alex-NRCan, @amir-azma, @cphelefu, @DamonU2, @kaminderpal, @mayurmarakana89, and @ychoquet)
packages/geoview-core/src/geo/layer/geoview-layers/abstract-geoview-layers.ts
line 1508 at r6 (raw file):
* @param {TimeDimension} temporalDimension The value to assign to the layer temporal dimension property. */ setTemporalDimension(layerPath: string, temporalDimension: TimeDimension, override: boolean): void {
Add your new param with description to JSDOC function descriptoin
packages/geoview-core/src/geo/layer/geoview-layers/abstract-geoview-layers.ts
line 1510 at r6 (raw file):
setTemporalDimension(layerPath: string, temporalDimension: TimeDimension, override: boolean): void { layerPath = layerPath || this.layerPathAssociatedToTheGeoviewLayer; if (override) {
Shold not be the reverse... override would be when we pass custom dimension. Maybe use custom instead of overide for param anme
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 5 of 7 files reviewed, 2 unresolved discussions (waiting on @Alex-NRCan, @amir-azma, @cphelefu, @DamonU2, @jolevesq, @kaminderpal, and @ychoquet)
packages/geoview-core/src/geo/layer/geoview-layers/abstract-geoview-layers.ts
line 1508 at r6 (raw file):
Previously, jolevesq (Johann Levesque) wrote…
Add your new param with description to JSDOC function descriptoin
Done.
packages/geoview-core/src/geo/layer/geoview-layers/abstract-geoview-layers.ts
line 1510 at r6 (raw file):
Previously, jolevesq (Johann Levesque) wrote…
Shold not be the reverse... override would be when we pass custom dimension. Maybe use custom instead of overide for param anme
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed all commit messages.
Reviewable status: 5 of 7 files reviewed, 1 unresolved discussion (waiting on @Alex-NRCan, @amir-azma, @cphelefu, @DamonU2, @kaminderpal, @mayurmarakana89, and @ychoquet)
packages/geoview-core/src/geo/layer/geoview-layers/abstract-geoview-layers.ts
line 1511 at r7 (raw file):
setTemporalDimension(layerPath: string, temporalDimension: TimeDimension, custom: boolean): void { layerPath = layerPath || this.layerPathAssociatedToTheGeoviewLayer; if (custom) {
Should you look for !custom? because the way it is, your code will ends up in the old code. Can you re build and host...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 5 of 7 files reviewed, 1 unresolved discussion (waiting on @Alex-NRCan, @amir-azma, @cphelefu, @DamonU2, @jolevesq, @kaminderpal, and @ychoquet)
packages/geoview-core/src/geo/layer/geoview-layers/abstract-geoview-layers.ts
line 1511 at r7 (raw file):
Previously, jolevesq (Johann Levesque) wrote…
Should you look for !custom? because the way it is, your code will ends up in the old code. Can you re build and host...
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 2 files at r8, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @Alex-NRCan, @amir-azma, @cphelefu, @DamonU2, @kaminderpal, and @ychoquet)
9c931e2
into
Canadian-Geospatial-Platform:develop
Description
Allows custom temporal dimension to existing layer path (single layer)
Fixes # (1540)
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.
Add the URL for your deploy!
https://mayurmarakana89.github.io/geoview/package-time-slider.html
Checklist:
I have made corresponding changes to the documentationI have added tests that prove my fix is effective or that my feature worksNew and existing unit tests pass locally with my changesThis change is